package cn.myblog.ainblog.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Dovaior
 * @Description MybatisPlus分页插件
 * @create 2021-04-06 09:52
 **/
@Configuration
public class MybatisPlusConfig {
    /**
     * MyBtis Plus原生分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
